﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CommunitySystemModel;

namespace CommunitySystem.Web.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“ICanGongService”。
    [ServiceContract]
    public interface ICanGongService
    {
        [OperationContract]
        ObservableCollection<CanGongModel> GetCanGongModel(int id, string orgids);
        [OperationContract]
        void InsertCanGong(CanGongModel model);
        [OperationContract]
        void UpdateCanGong(CanGongModel model);
        [OperationContract]
        ObservableCollection<CanGongDetail> GetCanGongDetailModel(int orgid, int cangongid, int id);
        [OperationContract]
        void InsertCheGaiDetail(CanGongDetail model);
        [OperationContract]
        void UpdateCheGaiDetail(CanGongDetail model);
        [OperationContract]
        void UpdateCheGaiDetailStatus(string ids, string type);
        [OperationContract]
        void UpdateCheGaiStatus(int id, string type, DateTime? dt, string orgname);
        [OperationContract]
        void DeleteCanGongDetail(string id);
        [OperationContract]
        void DeleteCanGong(int id, int orgid);
        [OperationContract]
        ObservableCollection<CanGongDetail> GetCanGongDetailModel1(int cangongid, int status);
    }
}
